-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Nodemon refactor & JSON config #200
Conversation
You can add ignore files from a nodemon.json file { ignore: [ files, ] }
Yay! I'm glad to see that the talk was useful to others. |
@mwbrooks I actually missed the talk, and am eagerly awaiting the video to be released, but I got quite a bit from your slides and from various projects have quite a bit of familiarity already. Still, definitely useful stuff. |
Includes simple passing tests, the exec.js has not been tested in detail yet.
Still lots to do, but taking a very code, test, code, test, test, test, code, test cycle.
Making it so lib/cli/ can just spew out options, and make it easier to test against too.
A hack that works for me at the moment is:
That is now if you don't mind the double output in the terminal. This should work on any unix based system. |
Also config static module is used by the parts of nodemon to run the thing. Ignore rules, on the command line also work - a nice new feature.
- Loads $HOME/nodemon.json - Then ./nodemon.json - Then overwrites with cli (or module) settings - -V gives detail of what's going on inside nodemon - -q shuts nodemon up entirely - Cleaner config loading breakup
- Events documented - Require working nicely - If nodemon is required, nodemon message are emitted rather than console.log'ged
Require tests failing in linux, but passing on Mac. Yay :( will fix this w/e. |
To start experimenting with this build:
npm install -g nodemon@dev
and please leave feedback & file issuesThis is the start of a complete restructuring of nodemon's source code, since currently it's a massive one script which can be difficult to test (and frankly the tests are limited right now) and difficult to contribute to.
So I'm breaking all the functionality down to small modules.
Key features of the new work:
nodemon.json
with overriding defaults kept in~/nodemon.json
. The JSON file will allow for all command line options to be stored in JSONThe whole code base is getting gutted, but I'm wary of making sure that the actual code gets carried across (because I know there's been a lot of fixes for Windows and edge cases).
Right now, the code is not in a good state, I'm still the file up, but I'm up for contributions, particularly to test modules.
I'm using @mwbrooks' and @filmaj's slides from their experience building the Cordova & PhoneGap CLI as inspiration: http://michaelbrooks.ca/deck/2013-node-brigade/
Addition feature checklist